package com.example.data;


public class ContactData implements Comparable<ContactData>{
	private String firstName;
	private String lastName;
	private String address;
	private String home;
	private String mobile;
	private String work;
	private String email;
	private String email2;
	private String birthDay;
	private String birthdayMonth;
	private String birthdayYear;
	private String group;
	private String address2;
	private String phone2;

	public ContactData() {			
	}
	
	public String getFirstName() {
		return firstName;
	}


	public String getLastName() {
		return lastName;
	}


	public String getAddress() {
		return address;
	}


	public String getHome() {
		return home;
	}


	public String getMobile() {
		return mobile;
	}


	public String getWork() {
		return work;
	}


	public String getEmail() {
		return email;
	}


	public String getEmail2() {
		return email2;
	}


	public String getBirthDay() {
		return birthDay;
	}


	public String getBirthdayMonth() {
		return birthdayMonth;
	}


	public String getBirthdayYear() {
		return birthdayYear;
	}


	public String getGroup() {
		return group;
	}


	public String getAddress2() {
		return address2;
	}


	public String getPhone2() {
		return phone2;
	}


	public ContactData withAddress(String address) {
		this.address = address;
		return this;
	}


	public ContactData withHome(String home) {
		this.home = home;
		return this;
	}


	public ContactData withMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}


	public ContactData withWork(String work) {
		this.work = work;
		return this;
	}
	
	public ContactData withLastName(String lastName) {
		this.lastName = lastName;
		return this;
	}

	public ContactData withFirstName(String firstName) {
		this.firstName = firstName;
		return this;
	}


	public ContactData withEmail(String email) {
		this.email = email;
		return this;
	}


	public ContactData withEmail2(String email2) {
		this.email2 = email2;
		return this;
	}


	public ContactData withBirthDay(String birthday) {
		this.birthDay = birthday;
		return this;
	}


	public ContactData withBirthdayMonth(String birthdayMonth) {
		this.birthdayMonth = birthdayMonth;
		return this;
	}


	public ContactData withBirthdayYear(String birthdayYear) {
		this.birthdayYear = birthdayYear;
		return this;
	}


	public ContactData withAddress2(String address2) {
		this.address2 = address2;
		return this;
	}


	public ContactData withPhone2(String phone2) {
		this.phone2 = phone2;
		return this;
	}
	
	@Override
	public String toString() {
		return "ContactData [firstName=" + firstName + ", lastName=" + lastName + "]";
	}


	@Override
	public int hashCode() {
		int result = 1;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContactData other = (ContactData) obj;	
		if (firstName == null) {
			if (!other.firstName.equals("") || other.firstName != null)
				return false;
		} else if (!firstName.equals(other.firstName))
			return false;
		if (lastName == null) {
			if (!other.lastName.equals("") || other.lastName != null)
				return false;
		} else if (!lastName.equals(other.lastName))
			return false;
		return true;
	}

	@Override
	public int compareTo(ContactData other) {
		return this.toString().toLowerCase().compareTo(other.toString().toLowerCase());
	}

	
}